home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / Tool Chest / Hardware / Display & Video Hardware / Display Card 4•8 / Display Card 4•8 / background_27732.xml < prev    next >
Encoding:
Extensible Markup Language  |  1990-09-06  |  9.8 KB  |  300 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>27732</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_29799.pbm</bitmap>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_24694.css" />
  11.     <part>
  12.         <id>6</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <false /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <false /> </sharedText>
  18.         <fixedLineHeight> <true /> </fixedLineHeight>
  19.         <autoTab> <false /> </autoTab>
  20.         <lockText> <true /> </lockText>
  21.         <rect>
  22.             <left>126</left>
  23.             <top>80</top>
  24.             <right>510</right>
  25.             <bottom>308</bottom>
  26.         </rect>
  27.         <style>transparent</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>left</textAlign>
  36.         <font>Garamond</font>
  37.         <textSize>14</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <textHeight>16</textHeight>
  40.         <name>cardtext</name>
  41.         <script></script>
  42.     </part>
  43.     <part>
  44.         <id>4</id>
  45.         <type>field</type>
  46.         <visible> <true /> </visible>
  47.         <dontWrap> <false /> </dontWrap>
  48.         <dontSearch> <false /> </dontSearch>
  49.         <sharedText> <false /> </sharedText>
  50.         <fixedLineHeight> <true /> </fixedLineHeight>
  51.         <autoTab> <false /> </autoTab>
  52.         <lockText> <true /> </lockText>
  53.         <rect>
  54.             <left>128</left>
  55.             <top>0</top>
  56.             <right>508</right>
  57.             <bottom>21</bottom>
  58.         </rect>
  59.         <style>transparent</style>
  60.         <autoSelect> <false /> </autoSelect>
  61.         <showLines> <false /> </showLines>
  62.         <wideMargins> <false /> </wideMargins>
  63.         <multipleLines> <false /> </multipleLines>
  64.         <reservedFamily> 0 </reservedFamily>
  65.         <titleWidth>0</titleWidth>
  66.         <icon>0</icon>
  67.         <textAlign>left</textAlign>
  68.         <font>Helvetica</font>
  69.         <textSize>18</textSize>
  70.         <textStyle>condense</textStyle>
  71.         <textStyle>outline</textStyle>
  72.         <textHeight>19</textHeight>
  73.         <name>Title</name>
  74.         <script></script>
  75.     </part>
  76.     <part>
  77.         <id>5</id>
  78.         <type>field</type>
  79.         <visible> <true /> </visible>
  80.         <dontWrap> <false /> </dontWrap>
  81.         <dontSearch> <false /> </dontSearch>
  82.         <sharedText> <false /> </sharedText>
  83.         <fixedLineHeight> <true /> </fixedLineHeight>
  84.         <autoTab> <false /> </autoTab>
  85.         <lockText> <true /> </lockText>
  86.         <rect>
  87.             <left>128</left>
  88.             <top>23</top>
  89.             <right>508</right>
  90.             <bottom>45</bottom>
  91.         </rect>
  92.         <style>transparent</style>
  93.         <autoSelect> <false /> </autoSelect>
  94.         <showLines> <false /> </showLines>
  95.         <wideMargins> <false /> </wideMargins>
  96.         <multipleLines> <false /> </multipleLines>
  97.         <reservedFamily> 0 </reservedFamily>
  98.         <titleWidth>0</titleWidth>
  99.         <icon>0</icon>
  100.         <textAlign>left</textAlign>
  101.         <font>Helvetica</font>
  102.         <textSize>18</textSize>
  103.         <textStyle>plain</textStyle>
  104.         <textHeight>20</textHeight>
  105.         <name>cardTitle</name>
  106.         <script></script>
  107.     </part>
  108.     <part>
  109.         <id>10</id>
  110.         <type>field</type>
  111.         <visible> <true /> </visible>
  112.         <dontWrap> <false /> </dontWrap>
  113.         <dontSearch> <false /> </dontSearch>
  114.         <sharedText> <false /> </sharedText>
  115.         <fixedLineHeight> <true /> </fixedLineHeight>
  116.         <autoTab> <false /> </autoTab>
  117.         <lockText> <true /> </lockText>
  118.         <rect>
  119.             <left>127</left>
  120.             <top>64</top>
  121.             <right>512</right>
  122.             <bottom>82</bottom>
  123.         </rect>
  124.         <style>transparent</style>
  125.         <autoSelect> <false /> </autoSelect>
  126.         <showLines> <false /> </showLines>
  127.         <wideMargins> <false /> </wideMargins>
  128.         <multipleLines> <false /> </multipleLines>
  129.         <reservedFamily> 0 </reservedFamily>
  130.         <titleWidth>0</titleWidth>
  131.         <icon>0</icon>
  132.         <textAlign>left</textAlign>
  133.         <font>B Garamond Bold</font>
  134.         <textSize>14</textSize>
  135.         <textStyle>plain</textStyle>
  136.         <textHeight>16</textHeight>
  137.         <name>subHeader</name>
  138.         <script></script>
  139.     </part>
  140.     <part>
  141.         <id>9</id>
  142.         <type>field</type>
  143.         <visible> <false /> </visible>
  144.         <dontWrap> <false /> </dontWrap>
  145.         <dontSearch> <false /> </dontSearch>
  146.         <sharedText> <false /> </sharedText>
  147.         <fixedLineHeight> <true /> </fixedLineHeight>
  148.         <autoTab> <false /> </autoTab>
  149.         <lockText> <true /> </lockText>
  150.         <rect>
  151.             <left>0</left>
  152.             <top>330</top>
  153.             <right>115</right>
  154.             <bottom>342</bottom>
  155.         </rect>
  156.         <style>transparent</style>
  157.         <autoSelect> <false /> </autoSelect>
  158.         <showLines> <false /> </showLines>
  159.         <wideMargins> <false /> </wideMargins>
  160.         <multipleLines> <false /> </multipleLines>
  161.         <reservedFamily> 0 </reservedFamily>
  162.         <titleWidth>0</titleWidth>
  163.         <icon>0</icon>
  164.         <textAlign>left</textAlign>
  165.         <font>Geneva</font>
  166.         <textSize>9</textSize>
  167.         <textStyle>plain</textStyle>
  168.         <textHeight>9</textHeight>
  169.         <name>cardName</name>
  170.         <script></script>
  171.     </part>
  172.     <part>
  173.         <id>16</id>
  174.         <type>field</type>
  175.         <visible> <false /> </visible>
  176.         <dontWrap> <false /> </dontWrap>
  177.         <dontSearch> <false /> </dontSearch>
  178.         <sharedText> <false /> </sharedText>
  179.         <fixedLineHeight> <true /> </fixedLineHeight>
  180.         <autoTab> <false /> </autoTab>
  181.         <lockText> <true /> </lockText>
  182.         <rect>
  183.             <left>0</left>
  184.             <top>330</top>
  185.             <right>96</right>
  186.             <bottom>342</bottom>
  187.         </rect>
  188.         <style>transparent</style>
  189.         <autoSelect> <false /> </autoSelect>
  190.         <showLines> <false /> </showLines>
  191.         <wideMargins> <false /> </wideMargins>
  192.         <multipleLines> <false /> </multipleLines>
  193.         <reservedFamily> 0 </reservedFamily>
  194.         <titleWidth>0</titleWidth>
  195.         <icon>0</icon>
  196.         <textAlign>left</textAlign>
  197.         <font>Geneva</font>
  198.         <textSize>9</textSize>
  199.         <textStyle>plain</textStyle>
  200.         <textHeight>9</textHeight>
  201.         <name>cardName</name>
  202.         <script></script>
  203.     </part>
  204.     <part>
  205.         <id>17</id>
  206.         <type>button</type>
  207.         <visible> <true /> </visible>
  208.         <reserved5> 0 </reserved5>
  209.         <reserved4> 0 </reserved4>
  210.         <reserved3> 0 </reserved3>
  211.         <reserved2> 0 </reserved2>
  212.         <reserved1> 0 </reserved1>
  213.         <enabled> <true /> </enabled>
  214.         <rect>
  215.             <left>428</left>
  216.             <top>317</top>
  217.             <right>456</right>
  218.             <bottom>342</bottom>
  219.         </rect>
  220.         <style>transparent</style>
  221.         <showName> <false /> </showName>
  222.         <highlight> <false /> </highlight>
  223.         <autoHighlight> <true /> </autoHighlight>
  224.         <sharedHighlight> <true /> </sharedHighlight>
  225.         <family>0</family>
  226.         <titleWidth>0</titleWidth>
  227.         <icon>18611</icon>
  228.         <textAlign>center</textAlign>
  229.         <font>Chicago</font>
  230.         <textSize>12</textSize>
  231.         <textStyle>plain</textStyle>
  232.         <name>prev</name>
  233.         <script>on mouseUp
  234. visual scroll right
  235. go prev
  236. end mouseUp
  237. </script>
  238.     </part>
  239.     <part>
  240.         <id>18</id>
  241.         <type>button</type>
  242.         <visible> <true /> </visible>
  243.         <reserved5> 0 </reserved5>
  244.         <reserved4> 0 </reserved4>
  245.         <reserved3> 0 </reserved3>
  246.         <reserved2> 0 </reserved2>
  247.         <reserved1> 0 </reserved1>
  248.         <enabled> <true /> </enabled>
  249.         <rect>
  250.             <left>457</left>
  251.             <top>317</top>
  252.             <right>484</right>
  253.             <bottom>342</bottom>
  254.         </rect>
  255.         <style>transparent</style>
  256.         <showName> <false /> </showName>
  257.         <highlight> <false /> </highlight>
  258.         <autoHighlight> <true /> </autoHighlight>
  259.         <sharedHighlight> <true /> </sharedHighlight>
  260.         <family>0</family>
  261.         <titleWidth>0</titleWidth>
  262.         <icon>18612</icon>
  263.         <textAlign>center</textAlign>
  264.         <font>Chicago</font>
  265.         <textSize>12</textSize>
  266.         <textStyle>plain</textStyle>
  267.         <name>next</name>
  268.         <script>on mouseUp
  269. if word 2 of the short name of this card = "0" then
  270. visual dissolve
  271. go next
  272. else
  273. visual scroll left
  274. go next
  275. end if
  276. end mouseUp
  277. </script>
  278.     </part>
  279.     <part>
  280.         <id>21</id>
  281.         <type>button</type>
  282.         <visible> <true /> </visible>
  283.         <reserved5> 0 </reserved5>
  284.         <reserved4> 0 </reserved4>
  285.         <reserved3> 0 </reserved3>
  286.         <reserved2> 0 </reserved2>
  287.         <reserved1> 0 </reserved1>
  288.         <enabled> <true /> </enabled>
  289.         <rect>
  290.             <left>449</left>
  291.             <top>3</top>
  292.             <right>510</right>
  293.             <bottom>18</bottom>
  294.         </rect>
  295.         <style>transparent</style>
  296.         <showName> <true /> </showName>
  297.         <highlight> <false /> </highlight>
  298.         <autoHighlight> <true /> </autoHighlight>
  299.         <sharedHighlight> <true /> </sharedHighlight>
  300.         <family>0</family>
  301.         <titleWidth>0</titleWidth>
  302.         <icon>0</icon>
  303.         <textAlign>left</textAlign>
  304.         <font>Geneva</font>
  305.         <textSize>10</textSize>
  306.         <textStyle>outline</textStyle>
  307.         <name>Contents</name>
  308.         <script>on mouseUp
  309. visual effect dissolve
  310. go card "content 0"
  311. end mouseUp
  312. </script>
  313.     </part>
  314.     <name>checkBack</name>
  315.     <script>on fixResponses -- called from openCard on tests 1-4
  316. repeat with r = 1 to the number of cd flds
  317. if word 1 of the short name of cd fld r = "answer" then
  318. put word 2 of the short name of cd fld r into rLine
  319. get line rLine of cd fld "Your Responses"
  320. if it <> "" then
  321. put line rLine of cd fld "Your Responses" into cd fld r
  322. else
  323. put "" into cd fld r
  324. end if
  325. end if
  326. end repeat
  327. end fixResponses
  328.  
  329. on toggleResponses -- called by mouseup in Answer fields in tests 1-3
  330. put word 2 of the short name of target into rLine
  331. repeat with r = 1 to the number of cd flds
  332. if word 1 of the short name of cd fld r = "Responses" then ¬¨
  333. hide cd fld r
  334. end repeat
  335. set the visible of cd fld ("Responses" && rLine) to true
  336. end toggleResponses
  337.  
  338. on chooseResponses -- called by mouseup in Responses fields in tests 1-3
  339. global inProgress
  340. put true into inProgress
  341. put clickline() into temp
  342. put (word 2 of the short name of target) into rLine
  343. put line temp of cd fld ("Responses" && rLine) into cd fld ("Answer" && rLine)
  344. put cd fld ("Answer" && rLine) into line rLine of cd fld "Your Responses"
  345. hide cd fld ("Responses" && rLine)
  346. put temp into line rLine of cd fld "Your Answers"
  347. end chooseResponses
  348.  
  349. on ScoreReview
  350. global memolist, testnumber, correct, incorrect
  351. put "0" into correct
  352. put "0" into incorrect
  353. answer "Do you want to review your scores?" with "No" or "Yes"
  354. if it is "No" then go card "test 0"
  355. else
  356. put 1 into s
  357. repeat with s = 1 to the number of items in memolist
  358. if item s of memolist = "true" then add 1 to correct
  359. else add 1 to incorrect
  360. add 1 to s
  361. end repeat
  362. go card "test 7"
  363. put correct into line testNumber of cd fld "correct"
  364. put incorrect into line testNumber of cd fld "incorrect"
  365. end if
  366. end ScoreReview
  367. </script>
  368. </background>
  369.